package cc.momas.mybatis.multidatasource;

import cc.momas.mybatis.multidatasource.cihua.TestCiHuaClass;
import cc.momas.mybatis.multidatasource.kingseok.TestKingseokClass;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class MultidatasourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(MultidatasourceApplication.class, args);
    }

    @Bean
    public CommandLineRunner kingseok() {
        return new TestKingseokClass();
    }

    @Bean
    public CommandLineRunner cihua() {
        return new TestCiHuaClass();
    }
}
